package com.xy.bioapi.repository;

import com.xy.bioapi.entity.Test;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.Set;

/**
 * 实验数据
 * Created by DELL on 2017/7/11.
 */

@Repository
public interface TestRepository extends MongoRepository<Test,String>{
    /**
     * 通过设备ID查询实验数据
     * @param equipmentId
     * @return
     */
    public Set<Test> findByEquipmentId(Long equipmentId);
}
